﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 颜色类
/// </summary>
public static class MyColors
{
    /// <summary>
    /// 红色
    /// </summary>
    public static MyColor RED 
    { 
        get 
        {
            return new MyColor
            {
                id = 0,
                color = new Color(1, 0, 0)
            }; 
        } 
    }
    /// <summary>
    /// 绿色
    /// </summary>
    public static MyColor GREEN
    {
        get
        {
            return new MyColor
            {
                id = 2,
                color = new Color(0, 1, 0)
            };
        }
    }


    /// <summary>
    /// 颜色结构体
    /// </summary>
    [System.Serializable]
    public struct MyColor
    {
        /// <summary>
        /// 颜色ID
        /// </summary>
        public int id;
        /// <summary>
        /// 具体颜色
        /// </summary>
        public Color color;
    }
}


